package com.babycare.bbcareorder.controller;

import com.babycare.bbcareorder.feign.ProductService;
import com.babycare.common.utils.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "Feign集成测试")
@RequestMapping("/feign")
public class FeignTestController {

    @Autowired
    private ProductService productService;


    @GetMapping("/test")
    public R queryBrand() {
        R r = productService.queryAllBrand("Hello");
        r.put("order", "i am from order");
        return r;
    }


}
